package ex18;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	
	public static void main(String[] args) throws IOException {
		
		InputStreamReader it = new InputStreamReader(System.in);
		BufferedReader in = new BufferedReader(it);
		
		int nota, aux_nota, cedula1, cedula2, cedula5, cedula10, cedula20, cedula50, cedula100;
		double cedula1d, cedula2d, cedula5d, cedula10d, cedula20d, cedula50d, cedula100d;
		
		nota = Integer.parseInt(in.readLine());
		aux_nota = nota;
		
		cedula100 = aux_nota / 100;
		cedula100d = cedula100 * 100; 
		aux_nota = aux_nota % 100;
		cedula50 = aux_nota / 50;
		cedula50d = cedula50 * 50; 
		aux_nota = aux_nota % 50;
		cedula20 = aux_nota / 20;
		cedula20d = cedula20 * 20; 
		aux_nota = aux_nota % 20;
		cedula10 = aux_nota / 10;
		cedula10d = cedula10 * 10; 
		aux_nota = aux_nota % 10;
		cedula5 = aux_nota / 5;
		cedula5d = cedula5 * 5; 
		aux_nota = aux_nota % 5;
		cedula2 = aux_nota / 2;
		cedula2d = cedula2 * 2; 
		aux_nota = aux_nota % 2;
		cedula1 = aux_nota / 1;
		cedula1d = cedula1; 
		
		System.out.printf("%d\n", nota);
		System.out.printf("%d nota(s) de R$ %.2f\n", cedula100, cedula100d);
		System.out.printf("%d nota(s) de R$ %.2f\n", cedula50, cedula50d);
		System.out.printf("%d nota(s) de R$ %.2f\n", cedula20, cedula20d);
		System.out.printf("%d nota(s) de R$ %.2f\n", cedula10, cedula10d);
		System.out.printf("%d nota(s) de R$ %.2f\n", cedula5, cedula5d);
		System.out.printf("%d nota(s) de R$ %.2f\n", cedula2, cedula2d);
		System.out.printf("%d nota(s) de R$ %.2f\n", cedula1, cedula1d);
		
	}

}
